<?php
declare(strict_types=1);

namespace LhpAmis\thinkphp\middleware;

use Closure;
use think\Request;
use app\common\traits\ResponseJson;
use LhpAmis\util\AmisConfig as UtilAmisConfig;

class AmisConfig
{
    public function handle(Request $request, Closure $next)
    {
        UtilAmisConfig::setConfig(config('tpamis'));

        return $next($request);
    }
}
